package com.horay.springclouddemo.provider.member.service;

import com.horay.springclouddemo.model.member.Member;
import com.horay.springclouddemo.model.member.MemberDTO;

import java.util.List;

/**
 * 成员业务服务接口
 *
 * @author heyingcheng
 * @date 2020/3/21 14:13
 */
public interface MemberService {

    /**
     * 新增成员
     *
     * @param member
     * @author heyingcheng
     * @date 2020/3/21 14:17
     * @return boolean
     */
    boolean createMember(Member member);

    /**
     * 获取成员
     *
     * @param id
     * @author heyingcheng
     * @date 2020/3/21 14:17
     * @return com.horay.springclouddemo.provider.member.model.Member
     */
    Member getMember(Integer id);

    /**
     * 获取成员集合
     *
     * @param memberDTO
     * @author heyingcheng
     * @date 2020/3/21 14:18
     * @return java.util.List<com.horay.springclouddemo.provider.member.model.Member>
     */
    List<Member> getMembers(MemberDTO memberDTO);

    /**
     * 更新成员
     *
     * @param member
     * @author heyingcheng
     * @date 2020/3/21 14:18
     * @return boolean
     */
    boolean updateMember(Member member);

    /**
     * 删除成员
     *
     * @param id
     * @author heyingcheng
     * @date 2020/3/21 14:19
     * @return boolean
     */
    boolean deleteMember(Integer id);

}
